import { useRequest } from "ahooks";
import { requestXx } from "./service";

const SomePage = () => {
  const { data, error, loading } = useRequest(() => requestXx());
  if (loading) {
    return <>loading</>;
  }
  if (data.status === 0) {
    return <>done</>;
  }
  if (data.status > 0) {
    return <> 大于0 </>;
  } else if (data.status < 0) {
    return <> 小于0 </>;
  }
};

export default SomePage;
